﻿using System;
using System.ServiceModel;

namespace OCXS.OCXSServiceLibrary.OPCXMLDA10 {

    [MessageContract(
        WrapperName = "SubscribeResponse", 
        WrapperNamespace = "http://opcfoundation.org/webservices/XMLDA/1.0/", 
        IsWrapped = true)]
    public class SubscribeResponse {

        [MessageBodyMember(Name = "SubscribeResult", Order = 0)]
        public OCXS.OCXSServiceLibrary.OPCXMLDA10.ReplyBase SubscribeResult;

        [MessageBodyMember(Name = "RItemList", Order = 1)]
        public OCXS.OCXSServiceLibrary.OPCXMLDA10.SubscribeReplyItemList RItemList;

        [MessageBodyMember(Name = "Errors", Order = 2)]
        public OPCError[] Errors;

        [MessageBodyMember(Name = "ServerSubHandle", Order = 3)]
        public string ServerSubHandle;

        public SubscribeResponse() {
        }

        public SubscribeResponse(OCXS.OCXSServiceLibrary.OPCXMLDA10.ReplyBase SubscribeResult, OCXS.OCXSServiceLibrary.OPCXMLDA10.SubscribeReplyItemList RItemList, OPCError[] Errors, string ServerSubHandle) {
            this.SubscribeResult = SubscribeResult;
            this.RItemList = RItemList;
            this.Errors = Errors;
            this.ServerSubHandle = ServerSubHandle;
        }
    }
}
